<?php
// Includes
require_once("myspace\MySpaceAPI.php");
require_once("Config.php"); // <-- SET YOUR KEY/SECRET HERE

// Set the key - application uri - secret key
$myspace = new MySpaceAPI(Config::$APPLICATION_KEY, Config::$APPLICATION_SECRET);

// Get XML, JSON
//$myspace->set_output_array(false); //set to false to get the XML or JSON format instead of native php arrays
//$myspace->set_response_type(ResponseType::$JSON); //change the type to XML, JSON

//--------------------------------------------------------------------


$user_id = 264730435; // <-- CHANGE to yours (you can get this from the iframe querystring for owner id and viewer id)

    //PUTS put-mood
    $result = $myspace->put_mood($user_id, MySpaceMoodType::$BLANK);
    echo 'put_mood';
    var_dump($result);
    echo '<hr>';

    
//--------------------------------------------------------------------

?>